package cn.jlearn.proxy.agent.handler.bs;

import cn.jlearn.proxy.common.body.TcpTunnelBody;
import cn.jlearn.proxy.common.handler.AbstractBsHandler;
import cn.jlearn.proxy.common.packet.BsPacket;
import org.tio.core.ChannelContext;

/**
 * @author qianyingchao
 * @version 1.0
 * @date 2021/5/12 4:45 下午
 */
public class TcpTunnelCloseReqHandler extends AbstractBsHandler<TcpTunnelBody> {

    @Override
    public Class<TcpTunnelBody> bodyClass() {
        return TcpTunnelBody.class;
    }

    @Override
    public void handler(BsPacket packet, TcpTunnelBody bsBody, ChannelContext channelContext) throws Exception {

//        ChannelManage.getInstance().removeAndClose(ChannelTypeEnum.FORWARD_TARGET, bsBody.getChannelId());
    }

}
